package com.codedef.controller;

import com.codedef.common.response.Result;
import com.codedef.service.FloorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/floor")
public class FloorController {

    @Autowired
    FloorService floorService;

    /**
     * 所有楼层
     */
    @GetMapping("/all")
    public Result getAllFloor() {
        return Result.SUCCESS(floorService.getAllFloor());
    }

}
